<template>
  <div>
    <router-view></router-view>
    <!-- 标签栏 -->
    <van-tabbar
      v-model="active"
      route
      active-color="#e40137"
      inactive-color="#b4b4bd"
      placeholder
    >
      <van-tabbar-item to="/home/company">
        <span>公司</span>
        <template #icon>
          <i class="iconfont">&#xe63d;</i>
        </template>
      </van-tabbar-item>
      <van-tabbar-item to="/home/question">
        <span>刷题</span>
        <template #icon>
          <i class="iconfont">&#xe63f;</i>
        </template>
      </van-tabbar-item>
      <van-tabbar-item to="/home/find">
        <span>发现</span>
        <template #icon>
          <i class="iconfont">&#xe63a;</i>
        </template>
      </van-tabbar-item>
      <van-tabbar-item to="/home/my">
        <span>我的</span>
        <template #icon>
          <i class="iconfont">&#xe645;</i>
        </template>
      </van-tabbar-item>
    </van-tabbar>
  </div>
</template>
<script>
export default {
  data () {
    return {
      active: 3
    }
  }
}
</script>
